import { createRouter, createWebHistory } from 'vue-router'
import Home from 'views/home/Home.vue'
import Community from 'views/community/Community.vue'
import Profile from 'views/profile/Profile.vue';

const routes = [
  {
    path:'',
    redirect: '/home'
  },
  {
    path: '/home',
    name: 'Home',
    component: Home
  },
  {
    path: '/community',
    name: 'Community',
    component: Community
  },
  {
    path: '/profile',
    name: 'Profile',
    component: Profile
  }
]

const router = createRouter(
    {history: createWebHistory(process.env.BASE_URL),
      routes
    })

export default router
